//防止重复包含头文件
#ifndef __WIFI_MQTT_H__
#define __WIFI_MQTT_H__

#include <stdio.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "mqtt_client.h"
#include "esp_event.h"
#include "esp_wifi.h"
#include "nvs_flash.h"
#include "cJSON.h"

#include "sdkconfig.h"
#include "freertos/queue.h"
#include "freertos/event_groups.h"
#include "esp_system.h"
#include "esp_log.h"
#include <sys/time.h>
#include "esp_sntp.h"


             
void WiFi_Init(void);
void Mqtt_Init(void);
void wifi_event_fun(void* handler_arg,esp_event_base_t event_base,int32_t event_id,void* event_data);
void mqtt_event_fun(void *event_handler_arg, esp_event_base_t event_base, int32_t event_id, void *event_data);

#endif